why does my function return none

welcome to shbcf.ru